<h1> Notification </h1>
<?php
    if($notification){
        echo '<ul>';
        foreach( array_reverse($notification) as $row){
            echo '<li><label>';
            if($row['message']->is_read==false){echo '<b>';}
            echo $row['user']->name." has sent ".$row['message']->subject." on " .$row['message']->date .'</BR>';
            echo '<a target="_blank" href='.base_url().'/message/view_message_page/'.$row['user_message_map']->user_message_map_id.'>View</a>';//echo ' ';echo '<a href='.base_url().'>Mark as read</a>';
            if($row['message']->is_read==false){echo '</b>';}
            echo '</label></li><br/>';
        }
        echo '</ul>';
    }
?>
